Skip to content

[7.x.x] Correct an issue with the Base URI of in-memory documents#204

Merged
adamretter merged 3 commits into
develop-7.x.xfrom
7.x.x/bugfix/base-uri-returns-db-instead-of-document-path
Jun 3, 2026
Merged

[7.x.x] Correct an issue with the Base URI of in-memory documents#204
adamretter merged 3 commits into
develop-7.x.xfrom
7.x.x/bugfix/base-uri-returns-db-instead-of-document-path

Conversation

@Laurettta
Copy link
Copy Markdown

@Laurettta Laurettta commented May 1, 2026

  1. Base URI of in-memory documents is now correctly returned.

  2. The DOM implementation for both persistent and in-memory nodes has been updated to match the W3C DOM spec for org.w3.dom.Node#getBaseURI().

  3. Base URI is now implemented for in-memory DOM Text and Comment Nodes.

Closes #186

…t path

The xml:base lookup in getBaseURI() was returning empty string when the attribute didn't exist. Removed it so we fall through to getDocumentURI() which gives the correct result.
Closes #186
@Laurettta Laurettta requested a review from adamretter May 1, 2026 09:15
@Laurettta Laurettta added the bug Something isn't working label May 1, 2026
@cla-bot cla-bot Bot added the cla-signed label May 1, 2026
Comment thread exist-core/src/test/java/org/exist/dom/memtree/DocumentImplTest.java Outdated
@evolvedbinary evolvedbinary deleted a comment from codacy-production Bot May 12, 2026
@Laurettta Laurettta changed the title Fix base-uri() returning empty string instead of the document path [bugfix] fix base-uri() returning empty string instead of the document path May 13, 2026
@adamretter adamretter changed the title [bugfix] fix base-uri() returning empty string instead of the document path [7.x.x] Correct an issue with the Base URI of in-memory documents Jun 3, 2026
@adamretter adamretter self-assigned this Jun 3, 2026
@adamretter adamretter added this to the elemental-7.6.1 milestone Jun 3, 2026
@adamretter adamretter force-pushed the 7.x.x/bugfix/base-uri-returns-db-instead-of-document-path branch 2 times, most recently from 69a8c56 to 02d508b Compare June 3, 2026 09:14
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Jun 3, 2026

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@adamretter adamretter force-pushed the 7.x.x/bugfix/base-uri-returns-db-instead-of-document-path branch from 02d508b to 7eb9311 Compare June 3, 2026 11:12
@adamretter adamretter force-pushed the 7.x.x/bugfix/base-uri-returns-db-instead-of-document-path branch from 7eb9311 to 67f02a1 Compare June 3, 2026 11:47
@adamretter adamretter merged commit 9721b50 into develop-7.x.x Jun 3, 2026
11 of 15 checks passed
@adamretter adamretter deleted the 7.x.x/bugfix/base-uri-returns-db-instead-of-document-path branch June 3, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants